//
//  UIDataRecorder.h
//  UI_Test_Frame
//
//  Created by tdh1 on 01/09/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef enum {
	touchTypeBegan,
	touchTypeMoved,
	touchTypeEnded,
	touchTypeCancelled,
} TouchType;

@interface UIDataLogItem : NSObject {
	TouchType touchType;
	NSTimeInterval timeOfEvent;
	UIEvent *event;
	NSSet *touches;
	
	NSString *name;
	
	float touchX;
	float touchY;
	
	float x;
	float y;
	float z;
	
	float latitude;
	float longitude;
	float altitude;
}

@property TouchType touchType;
@property NSTimeInterval timeOfEvent;
@property float touchX;
@property float touchY;
@property float x;
@property float y;
@property float z;
@property float latitude;
@property float longitude;
@property float altitude;
@property (nonatomic,copy) NSString *name;
@property (nonatomic,copy) UIEvent *event;
@property (nonatomic,copy) NSSet *touches;

@end

@interface UIDataRecorder : NSObject {
	NSMutableArray *eventLog;
	UIWindow *mainWindow;
	
	NSString * myUuid;
	
	NSString *conditionNme;
}

@property (nonatomic,assign) UIWindow *mainWindow;

+ (UIDataRecorder*)sharedDataRecorder;
- (void)addEvent:(TouchType)touchType andTouches:(NSSet*)touches andEvent:(UIEvent*)event;
- (NSString *)applicationDocumentsDirectory;
- (void)beginCondition:(NSString *)conditionName;
- (void)closeEventEpoch;
- (void)addCustomEvenType:(NSString *)specialEventName withTouches:(NSSet*)touches andEvent:(UIEvent*)event;
- (void)captureScreenShot;

@end
